package main

import "fmt"

func main() {
	call(1,2, add)
	call(1,2, del)
}

type CallFunc func(int, int) (int)

func call(a int, b int, callFunc CallFunc) {
	fmt.Println("res is ", callFunc(a, b))
}

func add(a int, b int) (res int) {
	res = a + b
	return
}

func del(a int, b int) (res int) {
	res = a - b
	return
}
